import {execFunc} from './customFunction';
import {getAction, deleteAction, putAction, postAction, httpAction, downFile} from '@/api/manage'
import store from '@/store'
import moment from "moment";
import {uuid} from 'vue-uuid'
import ComUtils from '@/utils/ComUtils'

function handleCreateFunc(func, context) {
  return execFunc(func, context);
}

function handleExecFunc(func, args, callback) {
  return func(args, getAction, deleteAction, putAction, postAction, httpAction, downFile, moment, uuid, ComUtils, store, callback)
}

export {handleCreateFunc, handleExecFunc};
